<include file="Public:pagerForm"/>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__CONTROLLER__/index" method="post">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    名 称：<input type="text" name="name" value="<{$Think.post.name}>"/>
                </td>
                <td>
                    公 司：<input type="text" name="company" value="<{$Think.post.company}>"/>
                </td>
            </tr>
        </table>	
        <div class="subBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
            </ul>
        </div>
    </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="__CONTROLLER__/show" target="dialog" mask="true" height="600" width="500"><span>添加</span></a></li>                     
            <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="id[]" href="__CONTROLLER__/del" class="delete"><span>批量删除</span></a></li>                    
            <li><a class="edit" href="__CONTROLLER__/show/id/{wiki_id}" target="dialog" mask="true" warn="请选择一条信息" height="600" width="500"><span>修改</span></a></li>
            <li><a class="icon" href="__CONTROLLER__/addExcel" target="dialog" ><span>导入EXCEL</span></a></li>
            <li class="line">line</li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="138" style="table-layout:fixed;" nowrapTD="false">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="id[]" class="checkboxCtrl"></th>
                <th width="60"  align="center">序号</th>
                <th width="120" >名称</th>
                <th width="120" >品牌</th>
                <th width="110" align="center">图片</th>
                <th width="100" align="center">类型</th>
                <th width="80" >型号</th>
                <th width="300" >公司</th>
                <th width="110" >网址</th>
                <th width="80" align="center">参考价</th>
                <th width="100">描述</th>
                <th width="110" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
            <?php $i=1;?> 
            <foreach name='wikiList' item="list">
                <tr target="wiki_id" rel="<{$list.id}>">
                <td><input name="id[]" value="<{$list.id}>" type="checkbox"></td>
                <td><{$i}></td>
                <td><{$list.name}></td>
                <td><{$list.brand}></td>
                <td class="imgs"><img src="<{$Think.const.PUBLIC_URL}>upload/<{$list.icon}>" height="95px"></td>  
                <td><{$list.type}></td>
                <td><{$list.typeno}></td>
                <td ><{$list.company}></td>
                <td><{$list.website}></td>
                <td><{$list.price}></td>
                <td><{$list.description}></td>                     
                <td><a title="确定删除" target="ajaxTodo" href="__CONTROLLER__/del/id/<{$list.id}>" >删除</a>                    
                </td>
            </tr>
            <?php $i++;?>
            </foreach>
        </tbody>        
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<{$totalCount}>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<{$totalCount}>" numPerPage="<{$numPerPage}>" pageNumShown="6"  currentPage="<{$currentPage}>"></div>
    </div>
</div>
<style type="text/css" media="screen">
    .imgs{text-align:center;}
    .imgs div{height:100px!important;}
</style>